import Vue from "vue"
import {
	Header,Swipe, SwipeItem,Toast
} from 'mint-ui';
import "./lib/mui/css/mui.min.css"
import "./lib/mui/css/icons-extra.css"

import app from './App.vue'
import router from "./router.js"

//使用vue-resource要使用这个
import VueResource from "vue-resource"

Vue.use(VueResource)
Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

import moment from "moment"
Vue.filter("filterDate",function(dateStr,pattern="YYYY-MM-DD HH:mm:ss" ){
	return moment(dateStr).format(pattern)
})
var vm = new Vue({
	el: "#app",
	render: c => c(app),
	router,

})
console.log(vm)
